<?if(isset($print)):?>
<style>
	table{
		width: 100%;
	}
	table.table{
		border: 1px solid #000;
		border-collapse: collapse;
	}
	table.table tr td{
		border: 1px solid #000;
		padding:2px 5px;
		font-size:12px;
	}
</style>
<table>
	<tr>
		<td style="font-size:20; text-align:center;font-weight:bold;"><?=@$school_name;?></td>
	</tr>
	<tr>
		<td style="font-size:12px; text-align:center;font-weight:bold;">Section Overview</td>
	</tr>
	<tr>
		<td style="font-size:12px; text-align:center;font-weight:bold;">School Year: <?=@$school_year;?></td>
	</tr>
	<tr>
		<td style="font-size:12px; text-align:center;font-weight:bold;"><?=@$print_title;?></td>
	</tr>
</table>
<?endif;?>

<table class="table table-hover">
	<thead>
		<tr>
			<th class="center">Section Name</th>
			<th class="center">Section Block</th>
			<th class="center">Grade Level</th>
			<th class="center">Total (Male)</th>
			<th class="center">Total (Female)</th>
			<th class="center">Total (Male + Female)</th>
		</tr>
	</thead>
	<tbody>
		<?if(!empty($section_master_list)):?>
			<?foreach($section_master_list as $k=>$v):?>
			<tr>
				<td class="center"><?=$v->section_name;?></td>
				<td class="center"><?=$v->block_name;?></td>
				<td class="center"><?=$v->level_desc;?></td>
				<td class="center"><?=$count($v->id,'male');?></td>
				<td class="center"><?=$count($v->id,'female');?></td>
				<td class="center"><?=$count($v->id,'male') + $count($v->id,'female');?></td>
			</tr>
			<?endforeach;?>
		<?else:?>
			<tr>
				<td colspan="5">No Sections To Display</td>
			</tr>
		<?endif;?>
	</tbody>
</table>

